<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.1" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format" exclude-result-prefixes="fo">
<xsl:output method="xml" version="1.0" omit-xml-declaration="no" indent="yes"/>

<!-- ========================= -->
<!-- root element: assemblyBuildAcknowledgement -->
<!-- ========================= -->


<xsl:template match="assemblyBuildAcknowledgement">

	<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
    <!-- ========================= -->
    <!-- gobal variable           -->
    <!-- ========================= -->
    <xsl:variable name="cancelImagePath" select="cancelImage"/>

	<fo:layout-master-set>
		<fo:simple-page-master master-name="simpleA4"
        		page-height="11in"
        		page-width="8.5in"
        		margin-top="20mm"
        		margin-bottom="20mm"
      			margin-left="7mm"
      			margin-right="10mm" >

            <fo:region-before extent="30mm"/>

			<fo:region-after extent="7mm"/>

			<!--fo:region-body margin-top="30mm" margin-bottom="30mm"/-->

            <!-- ========================================================  -->
			<!-- Inorder to check whether Assembly Release is cancelled or not -->
			<!-- ========================================================  -->

			<xsl:if test="@cancel='0'">
			<fo:region-body margin-top="30mm" margin-bottom="30mm"/>
			</xsl:if>

			<xsl:if test="@cancel='1'">
			<fo:region-body margin-top="30mm" margin-bottom="30mm" background-image="{$cancelImagePath}" />
			</xsl:if>

  		</fo:simple-page-master>
	</fo:layout-master-set>




<fo:page-sequence master-reference="simpleA4">

<!--============================== -->
<!-- Page Number block             -->
<!--============================== -->
    <fo:static-content flow-name="xsl-region-before">

    <fo:block font-size="8pt" space-after="0.5cm">
	<fo:table margin="2mm" table-layout="fixed" width="100%">

    <fo:table-column column-width="15mm" />
	<fo:table-column column-width="35mm" />
	<fo:table-column column-width="15mm" />
	<fo:table-column column-width="80mm" display-align="center" />
	<fo:table-column />

<!--==============================-->
<!-- Logo and Self address block  -->
<!--==============================-->

	<fo:table-body>
		<fo:table-row>

            <fo:table-cell />

			<fo:table-cell >
			    <xsl:apply-template match="logo">
				<fo:external-graphic content-height = ".5in"  content-width = ".5in" >
					<xsl:attribute name="src" >
						<xsl:value-of select="logo" />
					</xsl:attribute>
				</fo:external-graphic>
			    </xsl:apply-template>
		    </fo:table-cell>

            <fo:table-cell />

            <fo:table-cell text-align="center">
                <fo:block font-size="14pt" font-weight="bold" display-align="center">Assembly Build Instructions</fo:block>
                <xsl:apply-template match="selfAddress">
                <fo:block font-size="8pt" font-weight="bold" display-align="center"><xsl:value-of select="selfAddress//name" /></fo:block>
                <fo:block font-size="8pt" font-weight="bold" display-align="center"><xsl:value-of select="selfAddress//address1" /></fo:block>
                <fo:block font-size="8pt" font-weight="bold" display-align="center"><xsl:value-of select="selfAddress//address2" /></fo:block>
                <fo:block font-size="8pt" font-weight="bold" display-align="center"><xsl:value-of select="selfAddress//address3" /></fo:block>
                <fo:block font-size="8pt" font-weight="bold" display-align="center"><xsl:value-of select="selfAddress//address4" /></fo:block>
                <fo:block font-size="8pt" font-weight="bold" display-align="center"><xsl:value-of select="selfAddress//cityStateZip" /></fo:block>
                <fo:block font-size="8pt" font-weight="bold" display-align="center"><xsl:value-of select="selfAddress//phoneFax" /></fo:block>
                </xsl:apply-template>
            </fo:table-cell>

			<fo:table-cell />

		</fo:table-row>
	</fo:table-body>
	</fo:table >
	</fo:block>

    </fo:static-content>


<fo:static-content flow-name="xsl-region-after">

	<fo:block font-size="5pt" text-align="center">
	<fo:table table-layout="fixed" width="100%" >

	<fo:table-column column-width="180mm" />
	<fo:table-column column-width="20mm" />

     <fo:table-body>
		<fo:table-row>
		<fo:table-cell text-align="justify" width="100%" hyphenate="true">
					<fo:block display-align="left">

                   </fo:block>
     	</fo:table-cell>
         <fo:table-cell text-align="right" width="100%" >
		     		<fo:block font-size="7pt" font-weight="bold" display-align="right">
                         Page <fo:page-number />
                         </fo:block>
     	</fo:table-cell>
		</fo:table-row>
	</fo:table-body>
	</fo:table >
	</fo:block>

</fo:static-content>

<fo:flow flow-name="xsl-region-body">

<!--==============================-->
<!-- From and To addresses block  -->
<!--==============================-->


	<fo:table table-layout="fixed" width="102%" space-after="0.5cm">
		<fo:table-column column-width="12mm"/>
		<fo:table-column column-width="60mm" />
		<fo:table-column column-width="4mm" />
		<fo:table-column column-width="60mm" />
        <fo:table-column column-width="12mm"/>

		<fo:table-body>
			<fo:table-row>

				<fo:table-cell/>

                <fo:table-cell hyphenate="true" >
			 		<fo:block > <xsl:apply-templates select="waferLotInformation"/> </fo:block>
				</fo:table-cell>

                <fo:table-cell/>

				<fo:table-cell hyphenate="true" >
			 		<fo:block > <xsl:apply-templates select="laserInformation"/> </fo:block>
				</fo:table-cell>

                <fo:table-cell/>

			</fo:table-row>
		</fo:table-body>
	</fo:table>


<!--===============================-->
<!-- Assembly Information block    -->
<!--===============================-->

    <fo:table table-layout="fixed" width="102%" space-after="0.5cm">
		<fo:table-column column-width="12mm"/>
		<fo:table-column column-width="60mm" />
		<fo:table-column column-width="4mm" />
		<fo:table-column column-width="60mm" />
        <fo:table-column column-width="12mm"/>

		<fo:table-body>
			<fo:table-row>

				<fo:table-cell/>

                <fo:table-cell hyphenate="true" >
			 		<fo:block > <xsl:apply-templates select="lotNumbers"/> </fo:block>
				</fo:table-cell>

                <fo:table-cell/>

				<fo:table-cell hyphenate="true" >
			 		<fo:block space-after="0.5cm"> <xsl:apply-templates select="assemblyInformation"/> </fo:block>

                    <fo:block space-after="0.5cm"> <xsl:apply-templates select="testInformation"/> </fo:block>

                    <fo:block space-after="0.5cm"> <xsl:apply-templates select="shipInformation"/> </fo:block>
				</fo:table-cell>

                <fo:table-cell/>

			</fo:table-row>
		</fo:table-body>
	</fo:table>



<!-- Inorder to get page count -->

<fo:block id="endofdoc"></fo:block>
</fo:flow>

</fo:page-sequence>
</fo:root>
</xsl:template>


<!-- ================================ -->
<!--	child element: Self Address     -->
<!-- ================================ -->

<xsl:template match="selfAddress">
	<fo:table width="100%" table-layout="fixed">
	<fo:table-column />
		<fo:table-body>
			<fo:table-row>
				<fo:table-cell text-align="center">

					<fo:block font-weight="bold">Self Address:</fo:block>
					<fo:block><xsl:value-of select="name"/></fo:block>
					<fo:block><xsl:value-of select="address1"/></fo:block>
					<fo:block><xsl:value-of select="address2"/></fo:block>
					<fo:block><xsl:value-of select="address3"/></fo:block>
					<fo:block><xsl:value-of select="phone"/></fo:block>
					<fo:block><xsl:value-of select="fax"/></fo:block>
					<fo:block>Email: <xsl:value-of select="email"/></fo:block>

				</fo:table-cell>
			</fo:table-row>
		</fo:table-body>
	</fo:table>
</xsl:template>

<!-- ================================ -->
<!-- Child element: Wafer Lot Information -->
<!-- ================================ -->


<xsl:template match="waferLotInformation">

	<fo:table margin="2mm" width="100%" table-layout="fixed">
        <fo:table-column />
        <fo:table-column />

		<fo:table-body>
			<fo:table-row height="0.5cm">
				<fo:table-cell number-columns-spanned="2" background-color="#DEE1E2" border="1pt double black" display-align="center">
				<fo:block font-size="9pt" font-weight="bold" text-align="center">Wafer Lot Information</fo:block>
				</fo:table-cell>
			</fo:table-row>

			<fo:table-row height="0.4cm">
				<fo:table-cell number-columns-spanned="2" background-color="#FFFFEE" border="1pt double black" display-align="center">
				</fo:table-cell>
			</fo:table-row>

            <fo:table-row height="0.4cm">
				<fo:table-cell background-color="#FFFFEE" border="1pt double black" display-align="center">
                <fo:block font-size="8pt" font-weight="bold">Assembly Device Name</fo:block>
                </fo:table-cell>
                <fo:table-cell background-color="#FFFFEE" border="1pt double black" display-align="center">
				<fo:block font-size="8pt" font-weight="bold"><xsl:value-of select="assemblyDeviceName"/></fo:block>
                </fo:table-cell>
            </fo:table-row>

            <fo:table-row height="0.4cm">
                <fo:table-cell background-color="#FFFFEE" border="1pt double black" display-align="center">
                <fo:block font-size="8pt" font-weight="bold">Base Product</fo:block>
                </fo:table-cell>
                <fo:table-cell background-color="#FFFFEE" border="1pt double black" display-align="center">
				<fo:block font-size="8pt" font-weight="bold"><xsl:value-of select="baseProduct"/></fo:block>
                </fo:table-cell>
            </fo:table-row>

            <fo:table-row height="0.4cm">
                <fo:table-cell background-color="#FFFFEE" border="1pt double black" display-align="center">
                <fo:block font-size="8pt" font-weight="bold">PO Number</fo:block>
                </fo:table-cell>
                <fo:table-cell background-color="#FFFFEE" border="1pt double black" display-align="center">
				<fo:block font-size="8pt" font-weight="bold"><xsl:value-of select="poNumber"/></fo:block>
                </fo:table-cell>
            </fo:table-row>

            <fo:table-row height="0.4cm">
                <fo:table-cell background-color="#FFFFEE" border="1pt double black" display-align="center">
                <fo:block font-size="8pt" font-weight="bold">Release Date</fo:block>
                </fo:table-cell>
                <fo:table-cell background-color="#FFFFEE" border="1pt double black" display-align="center">
				<fo:block font-size="8pt" font-weight="bold"><xsl:value-of select="releaseDate"/></fo:block>
                </fo:table-cell>
            </fo:table-row>

            <fo:table-row height="0.4cm">
                <fo:table-cell background-color="#FFFFEE" border="1pt double black" display-align="center">
				<fo:block font-size="8pt" font-weight="bold">Ship From Location</fo:block>
                </fo:table-cell>
                <fo:table-cell background-color="#FFFFEE" border="1pt double black" display-align="center">
				<xsl:for-each select="group"><fo:block font-size="8pt" font-weight="bold" space-after="0.1cm"><xsl:value-of select="shipFromLocation"/></fo:block></xsl:for-each>
                </fo:table-cell>
			</fo:table-row>

		</fo:table-body>
	</fo:table>
</xsl:template>

<!-- ================================ -->
<!--  Child element: Laser Information -->
<!-- ================================ -->

<xsl:template match="laserInformation">

	<fo:table margin="2mm" width="100%" table-layout="fixed">
        <fo:table-column />
        <fo:table-column />
        <fo:table-body>
			<fo:table-row height="0.5cm">
				<fo:table-cell number-columns-spanned="2" background-color="#DEE1E2" border="1pt double black" display-align="center">
				<fo:block font-size="9pt" font-weight="bold" text-align="center">Laser Information</fo:block>
				</fo:table-cell>
			</fo:table-row>

			<fo:table-row height="0.4cm">
				<fo:table-cell number-columns-spanned="2" background-color="#FFFFEE" border="1pt double black" display-align="center">

                </fo:table-cell>
			</fo:table-row>

            <fo:table-row height="0.4cm">
                <fo:table-cell background-color="#FFFFEE" border="1pt double black" display-align="center">
                    <fo:block font-size="8pt" font-weight="bold">Fuse File Location</fo:block>
				</fo:table-cell>
				<fo:table-cell background-color="#FFFFEE" border="1pt double black" display-align="center">
                    <fo:block font-size="8pt" font-weight="bold" text-align="center"><xsl:value-of select="fuseFileLocation"/></fo:block>
				</fo:table-cell>
			</fo:table-row>

            <fo:table-row height="0.4cm">
                <fo:table-cell background-color="#FFFFEE" border="1pt double black" display-align="center">
                    <fo:block font-size="8pt" font-weight="bold">Wafer Map Location</fo:block>
				</fo:table-cell>
				<fo:table-cell background-color="#FFFFEE" border="1pt double black" display-align="center">
                    <fo:block font-size="8pt" font-weight="bold" text-align="center"><xsl:value-of select="waferMapLocation"/></fo:block>
				</fo:table-cell>
			</fo:table-row>
            </fo:table-body>
	</fo:table>

</xsl:template>

<!-- ================================ -->
<!-- Child element: Lot Number        -->
<!-- ================================ -->


    <xsl:template match="lotNumbers">
        <fo:table margin="2mm" width="100%" table-layout="fixed">
            <fo:table-column />
            <fo:table-column />
            <fo:table-column />

            <fo:table-body>
                <fo:table-row height="0.5cm">
                    <fo:table-cell background-color="#DEE1E2" border="1pt double black" display-align="center">
                    <fo:block font-size="8pt" font-weight="bold" text-align="center" hyphenate="true">Lot Number</fo:block>
                    </fo:table-cell>
                    <fo:table-cell background-color="#DEE1E2" border="1pt double black" display-align="center">
                    <fo:block font-size="8pt" font-weight="bold" text-align="center">Wafer Id</fo:block>
                    </fo:table-cell>
                    <fo:table-cell background-color="#DEE1E2" border="1pt double black" display-align="center">
                    <fo:block font-size="8pt" font-weight="bold" text-align="center">Quantity</fo:block>
                    </fo:table-cell>
                </fo:table-row>


                <xsl:for-each select="group">
                <fo:table-row height="0.4cm">
                    <fo:table-cell background-color="#FFFFEE" border="1pt double black" display-align="center">
                    <fo:block font-size="8pt" font-weight="bold"><xsl:value-of select="lotNo"/></fo:block>
                    </fo:table-cell>
                    <fo:table-cell background-color="#FFFFEE" border="1pt double black" display-align="center">
                    <fo:block font-size="8pt" font-weight="bold" text-align="right"><xsl:value-of select="waferId"/></fo:block>
                    </fo:table-cell>
                    <fo:table-cell background-color="#FFFFEE" border="1pt double black" display-align="center">
                    <fo:block font-size="8pt" font-weight="bold" text-align="right"><xsl:value-of select="quantity"/></fo:block>
                    </fo:table-cell>
                </fo:table-row>
                </xsl:for-each>

                <fo:table-row height="0.5cm">
                    <fo:table-cell number-columns-spanned="2" background-color="#FFFFEE" border="1pt double black" display-align="center">
                    <fo:block font-size="8pt" font-weight="bold" text-align="right">Total Quantity</fo:block>
                    </fo:table-cell>
                    <fo:table-cell background-color="#FFFFEE" border="1pt double black" display-align="center">
                    <fo:block font-size="8pt" font-weight="bold" text-align="right"><xsl:value-of select="quantitySum"/></fo:block>
                    </fo:table-cell>
                </fo:table-row>

            </fo:table-body>
        </fo:table>
    </xsl:template>

<!-- ================================ -->
<!-- Child element: Assembly Information -->
<!-- ================================ -->

        <xsl:template match="assemblyInformation">
            <fo:table margin="2mm" width="100%" table-layout="fixed">
                <fo:table-column />
                <fo:table-column />
                <fo:table-body>
                    <fo:table-row height="0.5cm">
                        <fo:table-cell number-columns-spanned="2" background-color="#DEE1E2" border="1pt double black" display-align="center">
                        <fo:block font-size="9pt" font-weight="bold" text-align="center">Assembly Information</fo:block>
                        </fo:table-cell>
                    </fo:table-row>

                    <fo:table-row height="0.5cm">
                        <fo:table-cell number-columns-spanned="2" background-color="#FFFFEE" border="1pt double black" display-align="center">

                        </fo:table-cell>
                    </fo:table-row>

                    <fo:table-row height="0.4cm">
                        <fo:table-cell background-color="#FFFFEE" border="1pt double black" display-align="center">
                        <fo:block font-size="8pt" font-weight="bold">Package</fo:block>
                        </fo:table-cell>
                        <fo:table-cell background-color="#FFFFEE" border="1pt double black" display-align="center">
                        <fo:block font-size="8pt" font-weight="bold" text-align="center"><xsl:value-of select="package"/></fo:block>
                        </fo:table-cell>
                    </fo:table-row>

                    <fo:table-row height="0.4cm">
                        <fo:table-cell background-color="#FFFFEE" border="1pt double black" display-align="center">
                        <fo:block font-size="8pt" font-weight="bold">QTY to Build</fo:block>
                        </fo:table-cell>
                        <fo:table-cell background-color="#FFFFEE" border="1pt double black" display-align="center">
                        <fo:block font-size="8pt" font-weight="bold" text-align="center"><xsl:value-of select="quantityBuild"/></fo:block>
                        </fo:table-cell>
                    </fo:table-row>

                    <fo:table-row height="0.4cm">
                        <fo:table-cell number-columns-spanned="2" background-color="#FFFFEE" border="1pt double black" display-align="center">

                        </fo:table-cell>
                    </fo:table-row>

                    <fo:table-row height="0.4cm">
                        <fo:table-cell background-color="#FFFFEE" border="1pt double black" display-align="center">
                        <fo:block font-size="8pt" font-weight="bold">Bonding Diagram</fo:block>
                        </fo:table-cell>
                        <fo:table-cell background-color="#FFFFEE" border="1pt double black" display-align="center">
                        <fo:block font-size="8pt" font-weight="bold" text-align="center"><xsl:value-of select="bondingDiagram"/></fo:block>
                        </fo:table-cell>
                    </fo:table-row>

                    <fo:table-row height="0.4cm">
                        <fo:table-cell background-color="#FFFFEE" border="1pt double black" display-align="center">
                        <fo:block font-size="8pt" font-weight="bold">PN Marking</fo:block>
                        </fo:table-cell>
                        <fo:table-cell background-color="#FFFFEE" border="1pt double black" display-align="center">
                        <fo:block font-size="8pt" font-weight="bold" text-align="center"><xsl:value-of select="pNMarking"/></fo:block>
                        </fo:table-cell>
                    </fo:table-row>

                    <fo:table-row height="0.4cm">
                        <fo:table-cell background-color="#FFFFEE" border="1pt double black" display-align="center">
                        <fo:block font-size="8pt" font-weight="bold">Category</fo:block>
                        </fo:table-cell>
                        <fo:table-cell background-color="#FFFFEE" border="1pt double black" display-align="center">
                        <fo:block font-size="8pt" font-weight="bold" text-align="center"><xsl:value-of select="category"/></fo:block>
                        </fo:table-cell>
                    </fo:table-row>

                    <fo:table-row height="0.4cm">
                        <fo:table-cell background-color="#FFFFEE" border="1pt double black" display-align="center">
                        <fo:block font-size="8pt" font-weight="bold">Line-1</fo:block>
                        </fo:table-cell>
                        <fo:table-cell background-color="#FFFFEE" border="1pt double black" display-align="center">
                        <fo:block font-size="8pt" font-weight="bold" text-align="center"><xsl:value-of select="line1"/></fo:block>
                        </fo:table-cell>
                    </fo:table-row>

                    <fo:table-row height="0.4cm">
                        <fo:table-cell background-color="#FFFFEE" border="1pt double black" display-align="center">
                        <fo:block font-size="8pt" font-weight="bold">Line-2</fo:block>
                        </fo:table-cell>
                        <fo:table-cell background-color="#FFFFEE" border="1pt double black" display-align="center">
                        <fo:block font-size="8pt" font-weight="bold" text-align="center"><xsl:value-of select="line2"/></fo:block>
                        </fo:table-cell>
                    </fo:table-row>

                    <fo:table-row height="0.4cm">
                        <fo:table-cell background-color="#FFFFEE" border="1pt double black" display-align="center">
                        <fo:block font-size="8pt" font-weight="bold">Line-3</fo:block>
                        </fo:table-cell>
                        <fo:table-cell background-color="#FFFFEE" border="1pt double black" display-align="center">
                        <fo:block font-size="8pt" font-weight="bold" text-align="center"><xsl:value-of select="line3"/></fo:block>
                        </fo:table-cell>
                    </fo:table-row>

                    <fo:table-row height="0.4cm">
                        <fo:table-cell background-color="#FFFFEE" border="1pt double black" display-align="center">
                        <fo:block font-size="8pt" font-weight="bold">Line-4</fo:block>
                        </fo:table-cell>
                        <fo:table-cell background-color="#FFFFEE" border="1pt double black" display-align="center">
                        <fo:block font-size="8pt" font-weight="bold" text-align="center"><xsl:value-of select="line4"/></fo:block>
                        </fo:table-cell>
                    </fo:table-row>

                    <fo:table-row height="0.4cm">
                        <fo:table-cell background-color="#FFFFEE" border="1pt double black" display-align="center">
                        <fo:block font-size="8pt" font-weight="bold">Line-5</fo:block>
                        </fo:table-cell>
                        <fo:table-cell background-color="#FFFFEE" border="1pt double black" display-align="center">
                        <fo:block font-size="8pt" font-weight="bold" text-align="center"><xsl:value-of select="line5"/></fo:block>
                        </fo:table-cell>
                    </fo:table-row>

                    <fo:table-row height="0.4cm">
                        <fo:table-cell background-color="#FFFFEE" border="1pt double black" display-align="center">
                        <fo:block font-size="8pt" font-weight="bold">Line-6</fo:block>
                        </fo:table-cell>
                        <fo:table-cell background-color="#FFFFEE" border="1pt double black" display-align="center">
                        <fo:block font-size="8pt" font-weight="bold" text-align="center"><xsl:value-of select="line6"/></fo:block>
                        </fo:table-cell>
                    </fo:table-row>

                    <fo:table-row height="0.4cm">
                        <fo:table-cell background-color="#FFFFEE" border="1pt double black" display-align="center">
                        <fo:block font-size="8pt" font-weight="bold">Build Instruction</fo:block>
                        </fo:table-cell>
                        <fo:table-cell background-color="#FFFFEE" border="1pt double black" display-align="center">
                        <fo:block font-size="8pt" font-weight="bold" text-align="center"><xsl:value-of select="buildInstruction"/></fo:block>
                        </fo:table-cell>
                    </fo:table-row>

                    <fo:table-row height="0.4cm">
                        <fo:table-cell background-color="#FFFFEE" border="1pt double black" display-align="center">
                        <fo:block font-size="8pt" font-weight="bold">Special Instructions</fo:block>
                        </fo:table-cell>
                        <fo:table-cell background-color="#FFFFEE" border="1pt double black" display-align="center">
                        <fo:block font-size="8pt" font-weight="bold" text-align="center"><xsl:value-of select="specialInstruction"/></fo:block>
                        </fo:table-cell>
                    </fo:table-row>

                </fo:table-body>
            </fo:table>

        </xsl:template>

<!-- ================================ -->
<!--  Child element: Test Information -->
<!-- ================================ -->

    <xsl:template match="testInformation">

        <fo:table margin="2mm" width="100%" table-layout="fixed">
            <fo:table-column />
            <fo:table-column />
            <fo:table-body>
                <fo:table-row height="0.5cm">
                    <fo:table-cell number-columns-spanned="2" background-color="#DEE1E2" border="1pt double black" display-align="center">
                    <fo:block font-size="9pt" font-weight="bold" text-align="center">Test Information</fo:block>
                    </fo:table-cell>
                </fo:table-row>

                <fo:table-row height="0.4cm">
                    <fo:table-cell number-columns-spanned="2" background-color="#FFFFEE" border="1pt double black" display-align="center">

                    </fo:table-cell>
                </fo:table-row>

                <fo:table-row height="0.4cm">
                    <fo:table-cell background-color="#FFFFEE" border="1pt double black" display-align="center">
                        <fo:block font-size="8pt" font-weight="bold">Mark At Assembly (MAA)</fo:block>
                    </fo:table-cell>
                    <fo:table-cell background-color="#FFFFEE" border="1pt double black" display-align="center">
                        <fo:block font-size="8pt" font-weight="bold" text-align="center"><xsl:value-of select="markAtAssembly"/></fo:block>
                    </fo:table-cell>
                </fo:table-row>

                <fo:table-row height="0.4cm">
                    <fo:table-cell background-color="#FFFFEE" border="1pt double black" display-align="center">
                        <fo:block font-size="8pt" font-weight="bold">Mark At Test (MAT)</fo:block>
                    </fo:table-cell>
                    <fo:table-cell background-color="#FFFFEE" border="1pt double black" display-align="center">
                        <fo:block font-size="8pt" font-weight="bold" text-align="center"><xsl:value-of select="markAtTest"/></fo:block>
                    </fo:table-cell>
                </fo:table-row>
                </fo:table-body>
        </fo:table>

    </xsl:template>

    <!-- ================================ -->
    <!--  Child element: Ship Information -->
    <!-- ================================ -->

        <xsl:template match="shipInformation">

            <fo:table margin="2mm" width="100%" table-layout="fixed">
                <fo:table-column />
                <fo:table-column />
                <fo:table-body>
                    <fo:table-row height="0.5cm">
                        <fo:table-cell number-columns-spanned="2" background-color="#DEE1E2" border="1pt double black" display-align="center">
                        <fo:block font-size="9pt" font-weight="bold" text-align="center">Shipping Information</fo:block>
                        </fo:table-cell>
                    </fo:table-row>

                    <fo:table-row height="1.5cm">
                        <fo:table-cell background-color="#FFFFEE" border="1pt double black" display-align="top">
                            <fo:block font-size="8pt" font-weight="bold">Ship To</fo:block>
                        </fo:table-cell>
                        <fo:table-cell background-color="#FFFFEE" border="1pt double black" display-align="top">
                            <fo:block font-size="8pt" font-weight="bold" text-align="left"><xsl:value-of select="vendorName"/></fo:block>
                            <fo:block font-size="8pt" font-weight="bold" text-align="left"><xsl:value-of select="address1"/></fo:block>
                            <fo:block font-size="8pt" font-weight="bold" text-align="left"><xsl:value-of select="address2"/></fo:block>
                            <fo:block font-size="8pt" font-weight="bold" text-align="left"><xsl:value-of select="address3"/></fo:block>
                            <fo:block font-size="8pt" font-weight="bold" text-align="left"><xsl:value-of select="address4"/></fo:block>
                            <fo:block font-size="8pt" font-weight="bold" text-align="left"><xsl:value-of select="city"/></fo:block>
                            <fo:block font-size="8pt" font-weight="bold" text-align="left"><xsl:value-of select="stateZipCountry"/></fo:block>
                        </fo:table-cell>
                    </fo:table-row>

                    </fo:table-body>
            </fo:table>

        </xsl:template>

<!-- =================================== -->
<!--	END of Document		         -->
<!-- =================================== -->

</xsl:stylesheet>